package cn.controller;

import cn.tools.Constants;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

@RequestMapping("/out")
@Controller
public class logout {
    @RequestMapping("/logout")
    public String logout(HttpSession req){
        req.removeAttribute("user");
        req.removeAttribute("dev");
        return "redirect:/index.jsp";
    }
}
